<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>修改用户 - Layui</title>
<link rel="stylesheet" href="/layui/css/layui.css">
<link rel="stylesheet" href="/css/admin.css">
</head>
<body>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <!-- 头部区域（可配合layui已有的水平导航） -->
     @include('admin.header')
   </div>
  <div class="layui-side layui-bg-black">
   
    @include('admin.left')
  </div>
  <div class="layui-body">
    <div class="right_div">
     <h2>用户信息修改界面</h2>   
     <form class="layui-form" action="douserchange" method="post" >
      <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-inline">
          <input type="text" name="username" lay-verify="pass" value="<?php echo $res['username'];?>" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">请修改用户名称呼</div>
      </div>
      <div class="layui-form-item">
        <label class="layui-form-label">邮箱</label>
        <div class="layui-input-inline">
          <input type="text" name="email" lay-verify="pass" value="<?php echo $res['email'];?>" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">请修改用户邮箱</div>
      </div>
      <div class="layui-form-item">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-inline">
          <input type="text" name="phone" lay-verify="pass" value="<?php echo $res['phone'];?>" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">请修改用户手机号</div>
      </div>
      <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-inline">
          <input type="text" name="password" lay-verify="pass" value="<?php echo $res['password'];?>" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">请修改用户密码</div>
      </div>
       <div class="layui-inline">
        <label class="layui-form-label">注册日期</label>
         <div class="layui-input-inline">
          <input type="text" name="date" id="date" lay-verify="date" value="<?php echo date('Y-m-d',$res['regtime'])?>" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this})">
         </div>
      </div>
      <div class="layui-form-item layui-form-text">
        <span style="height:15px;display: block"></span>
        <input type="hidden" name="id" value="<?php echo $res['id'];?>">   
      </div>
      <div class="layui-form-item">
        <div class="layui-input-block">
          <button class="layui-btn" lay-submit="" lay-filter="demo1">确认修改</button>    
        </div>
      </div>
     </form>   
   </div>
  </div>
 </div>
<script src="/layui/layui.js"></script>
<script>
//JavaScript代码区域

//JavaScript代码区域
layui.use(['form', 'layedit', 'laydate'], function(){
  var form = layui.form()
  ,layer = layui.layer
  ,layedit = layui.layedit
  ,laydate = layui.laydate;
  
  //创建一个编辑器
  var editIndex = layedit.build('LAY_demo_editor');
  
  })
</script>
</body>
</html>